//
//  Comment.m
//  SinaWeibo
//
//  Created by mj on 13-8-30.
//  Copyright (c) 2013年 itcast. All rights reserved.
//

#import "Comment.h"
#import "AyStatus.h"
#import "AyUser.h"
#import "NSObjectExtend.h"

@implementation Comment

- (void)setStatus:(AyStatus *)status
{
    if ([status isKindOfClass:[NSDictionary class]]) {
        // 设置微博数据
        _status = [[AyUser alloc] init];
        [_status setValues:(NSDictionary *)status];
    } else {
        _status = status;
    }
}

- (void)setReply_comment:(Comment *)reply_comment
{
    if ([reply_comment isKindOfClass:[NSDictionary class]]) {
        _reply_comment = [[Comment alloc] init];
        [_reply_comment setValues:(NSDictionary *)reply_comment];
    } else {
        _reply_comment = reply_comment;
    }
}
@end
